package com.ikun.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

/**
 * 排班表
 *
 * @author Guio
 * @since 2024-02-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("scheduling")
public class Scheduling implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

  /**
   * 医生id
   */
  private Integer dockerId;

  /**
     * 当天日期
     */
    private LocalDate date;

  /**
     * 余号,格式"时间段id,余号数"，map集合-string互转，每个时间段5票
     */
    private String code;

    /**
   * 班次，0上午/1下午
   */
  private Integer scheduling;

  /**
   * 挂号类型id
   */
  private Integer typeId;

  /**
   * 更新时间
   */
  private LocalDateTime updateTime;

  /**
   * 创建时间
   */
  private LocalDateTime createTime;

  /**
   * 删除状态，0未，1删除
   */
  private Integer del;

  @TableField(exist = false)
  private RegistrationType registrationType;

  @TableField(exist = false)
  private Price price;
}